package com.joy.web.common.service;

import com.joy.common.model.vo.FileInfoVO;
import com.joy.web.base.service.IBaseService;
import com.joy.web.common.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Optional;

/**
 * <p>
 * 文件信息表 服务类
 * </p>
 *
 * @author yjzhao
 * @since 2019-09-20
 */
public interface IFileInfoService extends IBaseService<FileInfo> {

    /**
     * @Description 上传问及那至本地
     * @param uploadFile
     * @param sourceType
     * @return
     * @Author yjzhao
     * @Date 2019/9/20 16:32
     **/
    Optional<FileInfoVO> localFileUp(MultipartFile uploadFile, String sourceType);
}
